﻿namespace CommLib
{
    public class MessageSignal : BluetoothMessage
    {
        public static readonly int MAX_STRENGTH = 31;

	    public MessageSignal(int strength)
		    : base(BtMessageType.Signal, new string[] { strength.ToString() })
        {
	    }

	    public MessageSignal(byte[] data, int length)
		    : base(BtMessageType.Signal, data, length)
        {
	    }

	    public int getStrength() {
		    return int.Parse(mData[0]);
	    }

    }
}
